import Layout from '@/layouts';

export default [
  {
    path: '/kjtjdc',
    component: Layout,
    redirect: '/kjtjdc/process',
    meta: {
      // title: '科技统计调查',
      title: '科技统计',
      isOrNot: true,
      // icon: 'view-module',
      roleCode: "customer_api",
    },
    children: [
      {
        path: 'tables',
        component: () => import('@/pages/kjtjdc/tables/index.vue'),
        meta: { title: '表单管理', icon: 'view-module' },
        children: []
      },
      {
        path: 'process',
        component: () => import('@/pages/kjtjdc/process/index.vue'),
        meta: { title: '待填报表', icon: 'view-module' },
        children: []
      },
      {
        path: 'manage',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjtjdc/manage/view-table-list',
        meta: { title: '填报管理', icon: 'view-module' },
        children: [
          {
            path: 'view-table-list',
            component: () => import('@/pages/kjtjdc/view-table-list/index.vue'),
            meta: { title: '填报列表' },
          },
          // {
          //   path: 'fill-table-info',
          //   component: () => import('@/pages/kjtjdc/forms/index.vue'),
          //   meta: { title: '查看已填表单', hidden: true, activeMenu: '/kjtjdc/manage/view-table-list'},
          // },
          {
            path: 'assignment-by-table',
            component: () => import('@/pages/kjtjdc/assignment/index.vue'),
            meta: { title: '按表单分配' },
          },
          {
            path: 'assignment-by-unit',
            component: () => import('@/pages/kjtjdc/home.vue'),
            meta: { title: '按单位分配' },
          },
        ],
      },
    ],
  },
];
